{! extends name="home/base" !}


{! block name="content" !}
<div class="posts pure-u-3-4 pure-u-md-3-4">
    <div class="posts">

        <section class="post">
            <header class="post-header">

                <h2 class="post-title">{=$post['title']}</h2>

                <p class="post-meta">
                    时间: {=$post['create_at']} &nbsp; 标签:

{! for $post['tags'] as $key => $tag !}
        <a href="post_search?tags={=$tag['id']}" class="post-category"><span>{=$tag['name']}</span></a>
{! endfor !}
                </p>
            </header>

            <div class="post-description">
                <div>
                    {=$post['content_html']} ......
                </div>
                <p>
                    <a href="/post/{=$post['id']}">继续阅读 &gt;&gt;&gt;</a>
                </p>
            </div>
        </section>

        <section class="posts-nav">
            <h3>最近的10篇文章</h3>
            <div style="border: 1px solid rgb(243,243,243); height: 0px;"></div>
            <div>
                <ul>

{! for $list as $key => $po !}
                    <li><a href="/post/{=$post['id']}">{=$po['create_at']} &nbsp; {=$po['title']}</a> </li>
{! endfor !}

                </ul>
            </div>
        </section>
    </div>
</div>

<div class="pure-u-1-4 pure-u-md-1-4 profile">
    <div class="tags">
{! for $tags as $key => $tag !}
        <a href="post_search?tags={=$key}" class="post-category"><span>{=$tag}</span></a>
{! endfor !}
    </div>  
    <div class="meinfo">
        <img src="./img/avatar.jpg" width="100">
        <p>无聊久了,就成了随波逐流的闲鱼了.<br>
            <a href="#">nice2m#foxmail.com</a>
        </p>
        <p>访客:0 留言:0</p>
    </div>
</div>
{! endblock !}
